import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import '@/router/interceptor'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/style/index.scss'
import GlobalComponents from '@/components/global'
import locals from '@/utils/locals'

Vue.config.productionTip = false

// ElementUI组件库
Vue.use(ElementUI, {
  size: localStorage.size || 'medium'
})
// 自定义全局组件
Vue.use(GlobalComponents)

// 本地常量
Vue.prototype.$locals = locals

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
